import React, { Component } from "react";

export default class componentName extends Component {
  render() {
    return (
      <div
        style={{
          width: "100%",
          height: "300px",
          justifyContent: "center",
          alignItems: "center",
          background: "black",
        }}
      >
        <span style={{ fontSize: 40, color: "yellow" }}>
          查看pi节点pi-consensus容器postgres数据库中core表信息
        </span>
        <br></br>
        <button onClick={acc}>pi钱包资料</button>
        <button onClick={cl}>pi钱包可用余额</button>
        <button onClick={led}>pi节点历史高度</button>
        <button onClick={peers}>pi节点全网ip地址</button>
        <button onClick={offer}>pi钱包offer</button>
        <button onClick={pub}>pi钱包订阅和发布</button>
        <button onClick={qu}>pi钱包鉴定人信息</button>
        <button onClick={scp}>pi节点scp信息</button>
        <button onClick={sp}>pi节点scp鉴定人</button>
        <button onClick={st}>pi钱包storestate</button>
        <button onClick={tr}>pi钱包在线鉴定</button>
        <button onClick={txh}>pi钱包历史记录</button>
        <button onClick={tx}>pi钱包交易历史记录</button>
        <button onClick={close}>关闭空闲连接</button>
        <button onClick={tvz}>当前总共正在使用的连接数</button>
        <button onClick={count}>查看数据库剩余连接数</button>
        <button onClick={max}>显示系统允许的最大连接数</button>
        <button onClick={index}>后台首页</button>
        <br></br>
        <span style={{ fontSize: 35, color: "red" }}>
          本软件有笨蛋刘晓陆定制开发的
        </span>
      </div>
    );
  }
}
const acc = () => {
  window.open("http://127.0.0.1:31403/acc");
};
const cl = () => {
  window.open("http://127.0.0.1:31403/cl");
};
const led = () => {
  window.open("http://127.0.0.1:31403/led");
};
const peers = () => {
  window.open("http://127.0.0.1:31403/peers");
};
const offer = () => {
  window.open("http://127.0.0.1:31403/offers");
};
const pub = () => {
  window.open("http://127.0.0.1:31403/pub");
};
const qu = () => {
  window.open("http://127.0.0.1:31403/qu");
};
const scp = () => {
  window.open("http://127.0.0.1:31403/scp");
};
const sp = () => {
  window.open("http://127.0.0.1:31403/scpq");
};
const st = () => {
  window.open("http://127.0.0.1:31403/st");
};
const tx = () => {
  window.open("http://127.0.0.1:31403/tx");
};
const tr = () => {
  window.open("http://127.0.0.1:31403/tr");
};
const txh = () => {
  window.open("http://127.0.0.1:31403/txh");
};
const index = () => {
  window.open("http://127.0.0.1:31403/");
};

const close = () => {
  window.open("http://127.0.0.1:31403/close");
};

const tvz = () => {
  window.open("http://127.0.0.1:31403/tvz");
};

const count = () => {
  window.open("http://127.0.0.1:31403/count");
};

const max = () => {
  window.open("http://127.0.0.1:31403/max");
};
